# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-latex
pkgver=3.36.0
pkgrel=0
pkgdesc="LaTeX editor for the GNOME desktop"
url="https://wiki.gnome.org/Apps/GNOME-LaTeX"
arch="all !x86 !ppc64le" # Needs texlive during runtime, which isn't available
arch="$arch !s390x !mips !mips64" # Limited by tepl-dev and gtksourceview4-dev
license="GPL-3.0-or-later"
depends="texlive"
makedepends="glib-dev intltool itstool vala yelp gobject-introspection-dev
	gsettings-desktop-schemas-dev gspell-dev gtk+3.0-dev libgee-dev
	gtksourceview4-dev tepl-dev dconf-dev"
options="!check" # appdata doesn't pass
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/gnome-latex/${pkgver%.*}/gnome-latex-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="54ba6c7571a0fe9cada9c8f01d57a1dd0bc4da07cc1a501adbc711433e6f16e890e44a588aa91b67f0ebb912dde8822d992763ed3b5a294a55a5bed20b7e1390  gnome-latex-3.36.0.tar.xz"
